{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "#Importing PulP solver\n",
    "from pulp import *"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [],
   "source": [
    "#Inputing the Demand points\n",
    "demand_points=['Port of Salalah', 'Port of Gaza','Port of Jebel Ali']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['Port of Salalah', 'Port of Gaza', 'Port of Jebel Ali']"
      ]
     },
     "execution_count": 3,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "demand_points"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [],
   "source": [
    "#Inputing the Supply Points\n",
    "supply_points=['Port of Vienna','Port of Antwerp','Port of Shanghai','Port of Hamburg_Czeck','Port of Marseille','Port of Hamburg_Germany','Port of Hong Kong','Port of Budapest','Port of Jawaharlal Nehru','Port of Gioia Tauro','Port of Nagoya','Port of Busan','Penang Port','Port of Manzanillo','Port of Rotterdam','Port of Gdansk','Port of Vladivostok','Port of Novorossiysk','Port of St. Petersburg','Port of Algeciras','Port of Bangkok','Port of Mersin','Port of Immingham','Port of New York','Port of Los Angeles','Port of Saigon']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['Port of Vienna',\n",
       " 'Port of Antwerp',\n",
       " 'Port of Shanghai',\n",
       " 'Port of Hamburg_Czeck',\n",
       " 'Port of Marseille',\n",
       " 'Port of Hamburg_Germany',\n",
       " 'Port of Hong Kong',\n",
       " 'Port of Budapest',\n",
       " 'Port of Jawaharlal Nehru',\n",
       " 'Port of Gioia Tauro',\n",
       " 'Port of Nagoya',\n",
       " 'Port of Busan',\n",
       " 'Penang Port',\n",
       " 'Port of Manzanillo',\n",
       " 'Port of Rotterdam',\n",
       " 'Port of Gdansk',\n",
       " 'Port of Vladivostok',\n",
       " 'Port of Novorossiysk',\n",
       " 'Port of St. Petersburg',\n",
       " 'Port of Algeciras',\n",
       " 'Port of Bangkok',\n",
       " 'Port of Mersin',\n",
       " 'Port of Immingham',\n",
       " 'Port of New York',\n",
       " 'Port of Los Angeles',\n",
       " 'Port of Saigon']"
      ]
     },
     "execution_count": 5,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "supply_points"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {},
   "outputs": [],
   "source": [
    "#Inputing the distances\n",
    "distance = dict(zip(supply_points,[dict(zip(demand_points, [4476,2106,5475])),\n",
    "dict(zip(demand_points, [5939,3327.94,6938])),\n",
    "dict(zip(demand_points, [6270,7660,6627])),\n",
    "dict(zip(demand_points, [6307,3595.7,7306])),\n",
    "dict(zip(demand_points, [4081,1631,5080])),\n",
    "dict(zip(demand_points, [6307,3595.7,7306])),\n",
    "dict(zip(demand_points, [5410,6949,5766])),\n",
    "dict(zip(demand_points, [4362,1992,5360])),\n",
    "dict(zip(demand_points, [1143,3243,1335])),\n",
    "dict(zip(demand_points, [3367,1336,4366])),\n",
    "dict(zip(demand_points, [7148,8308,7505])),\n",
    "dict(zip(demand_points, [6786,8020,7143])),\n",
    "dict(zip(demand_points, [3245,5210,3601])),\n",
    "dict(zip(demand_points, [11791,8088,12790])),\n",
    "dict(zip(demand_points, [6030,3335,7029])),\n",
    "dict(zip(demand_points, [7025,4119,8025])),\n",
    "dict(zip(demand_points, [7370,8522,7727])),\n",
    "dict(zip(demand_points, [3886,1295,4885])),\n",
    "dict(zip(demand_points, [7533,4545,8532])),\n",
    "dict(zip(demand_points, [4378,2004,5377])),\n",
    "dict(zip(demand_points, [4490,6341,4847])),\n",
    "dict(zip(demand_points, [2577,316,3576])),\n",
    "dict(zip(demand_points, [6081,3399,7080])),\n",
    "dict(zip(demand_points, [7930,5196,8918])),\n",
    "dict(zip(demand_points, [11137,9280,11116])),\n",
    "dict(zip(demand_points, [4353,6368,4709]))]))\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'Port of Vienna': {'Port of Salalah': 4476,\n",
       "  'Port of Gaza': 2106,\n",
       "  'Port of Jebel Ali': 5475},\n",
       " 'Port of Antwerp': {'Port of Salalah': 5939,\n",
       "  'Port of Gaza': 3327.94,\n",
       "  'Port of Jebel Ali': 6938},\n",
       " 'Port of Shanghai': {'Port of Salalah': 6270,\n",
       "  'Port of Gaza': 7660,\n",
       "  'Port of Jebel Ali': 6627},\n",
       " 'Port of Hamburg_Czeck': {'Port of Salalah': 6307,\n",
       "  'Port of Gaza': 3595.7,\n",
       "  'Port of Jebel Ali': 7306},\n",
       " 'Port of Marseille': {'Port of Salalah': 4081,\n",
       "  'Port of Gaza': 1631,\n",
       "  'Port of Jebel Ali': 5080},\n",
       " 'Port of Hamburg_Germany': {'Port of Salalah': 6307,\n",
       "  'Port of Gaza': 3595.7,\n",
       "  'Port of Jebel Ali': 7306},\n",
       " 'Port of Hong Kong': {'Port of Salalah': 5410,\n",
       "  'Port of Gaza': 6949,\n",
       "  'Port of Jebel Ali': 5766},\n",
       " 'Port of Budapest': {'Port of Salalah': 4362,\n",
       "  'Port of Gaza': 1992,\n",
       "  'Port of Jebel Ali': 5360},\n",
       " 'Port of Jawaharlal Nehru': {'Port of Salalah': 1143,\n",
       "  'Port of Gaza': 3243,\n",
       "  'Port of Jebel Ali': 1335},\n",
       " 'Port of Gioia Tauro': {'Port of Salalah': 3367,\n",
       "  'Port of Gaza': 1336,\n",
       "  'Port of Jebel Ali': 4366},\n",
       " 'Port of Nagoya': {'Port of Salalah': 7148,\n",
       "  'Port of Gaza': 8308,\n",
       "  'Port of Jebel Ali': 7505},\n",
       " 'Port of Busan': {'Port of Salalah': 6786,\n",
       "  'Port of Gaza': 8020,\n",
       "  'Port of Jebel Ali': 7143},\n",
       " 'Penang Port': {'Port of Salalah': 3245,\n",
       "  'Port of Gaza': 5210,\n",
       "  'Port of Jebel Ali': 3601},\n",
       " 'Port of Manzanillo': {'Port of Salalah': 11791,\n",
       "  'Port of Gaza': 8088,\n",
       "  'Port of Jebel Ali': 12790},\n",
       " 'Port of Rotterdam': {'Port of Salalah': 6030,\n",
       "  'Port of Gaza': 3335,\n",
       "  'Port of Jebel Ali': 7029},\n",
       " 'Port of Gdansk': {'Port of Salalah': 7025,\n",
       "  'Port of Gaza': 4119,\n",
       "  'Port of Jebel Ali': 8025},\n",
       " 'Port of Vladivostok': {'Port of Salalah': 7370,\n",
       "  'Port of Gaza': 8522,\n",
       "  'Port of Jebel Ali': 7727},\n",
       " 'Port of Novorossiysk': {'Port of Salalah': 3886,\n",
       "  'Port of Gaza': 1295,\n",
       "  'Port of Jebel Ali': 4885},\n",
       " 'Port of St. Petersburg': {'Port of Salalah': 7533,\n",
       "  'Port of Gaza': 4545,\n",
       "  'Port of Jebel Ali': 8532},\n",
       " 'Port of Algeciras': {'Port of Salalah': 4378,\n",
       "  'Port of Gaza': 2004,\n",
       "  'Port of Jebel Ali': 5377},\n",
       " 'Port of Bangkok': {'Port of Salalah': 4490,\n",
       "  'Port of Gaza': 6341,\n",
       "  'Port of Jebel Ali': 4847},\n",
       " 'Port of Mersin': {'Port of Salalah': 2577,\n",
       "  'Port of Gaza': 316,\n",
       "  'Port of Jebel Ali': 3576},\n",
       " 'Port of Immingham': {'Port of Salalah': 6081,\n",
       "  'Port of Gaza': 3399,\n",
       "  'Port of Jebel Ali': 7080},\n",
       " 'Port of New York': {'Port of Salalah': 7930,\n",
       "  'Port of Gaza': 5196,\n",
       "  'Port of Jebel Ali': 8918},\n",
       " 'Port of Los Angeles': {'Port of Salalah': 11137,\n",
       "  'Port of Gaza': 9280,\n",
       "  'Port of Jebel Ali': 11116},\n",
       " 'Port of Saigon': {'Port of Salalah': 4353,\n",
       "  'Port of Gaza': 6368,\n",
       "  'Port of Jebel Ali': 4709}}"
      ]
     },
     "execution_count": 7,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "distance"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {},
   "outputs": [],
   "source": [
    "#Inputing the Glass Demand\n",
    "glass_demand=dict(zip(demand_points, [25877189.32,23750237.12,27507802.95]))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'Port of Salalah': 25877189.32,\n",
       " 'Port of Gaza': 23750237.12,\n",
       " 'Port of Jebel Ali': 27507802.95}"
      ]
     },
     "execution_count": 9,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "glass_demand"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {},
   "outputs": [],
   "source": [
    "#Inputing the Glass Supply\n",
    "glass_supply=dict(zip(supply_points, [897756.3973,3142147.3790,16877821.2100,2513717.9040,4039903.7740,9785544.6960,3788531.9830,1346634.5910,1256858.9520,3411474.2980,4039903.7740,1975064.0670,1526185.8700,1975064.0670,1705737.1490,3052371.7400,498472.9915,243131.0679,245927.9741,1615961.5090,1077307.6730,1256858.9520,1795512.7880,4708260.2780,3281771.6290,1077307.6730])) "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'Port of Vienna': 897756.3973,\n",
       " 'Port of Antwerp': 3142147.379,\n",
       " 'Port of Shanghai': 16877821.21,\n",
       " 'Port of Hamburg_Czeck': 2513717.904,\n",
       " 'Port of Marseille': 4039903.774,\n",
       " 'Port of Hamburg_Germany': 9785544.696,\n",
       " 'Port of Hong Kong': 3788531.983,\n",
       " 'Port of Budapest': 1346634.591,\n",
       " 'Port of Jawaharlal Nehru': 1256858.952,\n",
       " 'Port of Gioia Tauro': 3411474.298,\n",
       " 'Port of Nagoya': 4039903.774,\n",
       " 'Port of Busan': 1975064.067,\n",
       " 'Penang Port': 1526185.87,\n",
       " 'Port of Manzanillo': 1975064.067,\n",
       " 'Port of Rotterdam': 1705737.149,\n",
       " 'Port of Gdansk': 3052371.74,\n",
       " 'Port of Vladivostok': 498472.9915,\n",
       " 'Port of Novorossiysk': 243131.0679,\n",
       " 'Port of St. Petersburg': 245927.9741,\n",
       " 'Port of Algeciras': 1615961.509,\n",
       " 'Port of Bangkok': 1077307.673,\n",
       " 'Port of Mersin': 1256858.952,\n",
       " 'Port of Immingham': 1795512.788,\n",
       " 'Port of New York': 4708260.278,\n",
       " 'Port of Los Angeles': 3281771.629,\n",
       " 'Port of Saigon': 1077307.673}"
      ]
     },
     "execution_count": 11,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "glass_supply"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "metadata": {},
   "outputs": [],
   "source": [
    "# Set Problem Variables\n",
    "prob = LpProblem(\"Transportation\", LpMinimize)\n",
    "\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "Transportation:\n",
       "MINIMIZE\n",
       "None\n",
       "VARIABLES"
      ]
     },
     "execution_count": 13,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "prob"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "metadata": {},
   "outputs": [],
   "source": [
    "# Set Problem Variables\n",
    "routes = [(i,j) for i in supply_points for j in demand_points]\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[('Port of Vienna', 'Port of Salalah'),\n",
       " ('Port of Vienna', 'Port of Gaza'),\n",
       " ('Port of Vienna', 'Port of Jebel Ali'),\n",
       " ('Port of Antwerp', 'Port of Salalah'),\n",
       " ('Port of Antwerp', 'Port of Gaza'),\n",
       " ('Port of Antwerp', 'Port of Jebel Ali'),\n",
       " ('Port of Shanghai', 'Port of Salalah'),\n",
       " ('Port of Shanghai', 'Port of Gaza'),\n",
       " ('Port of Shanghai', 'Port of Jebel Ali'),\n",
       " ('Port of Hamburg_Czeck', 'Port of Salalah'),\n",
       " ('Port of Hamburg_Czeck', 'Port of Gaza'),\n",
       " ('Port of Hamburg_Czeck', 'Port of Jebel Ali'),\n",
       " ('Port of Marseille', 'Port of Salalah'),\n",
       " ('Port of Marseille', 'Port of Gaza'),\n",
       " ('Port of Marseille', 'Port of Jebel Ali'),\n",
       " ('Port of Hamburg_Germany', 'Port of Salalah'),\n",
       " ('Port of Hamburg_Germany', 'Port of Gaza'),\n",
       " ('Port of Hamburg_Germany', 'Port of Jebel Ali'),\n",
       " ('Port of Hong Kong', 'Port of Salalah'),\n",
       " ('Port of Hong Kong', 'Port of Gaza'),\n",
       " ('Port of Hong Kong', 'Port of Jebel Ali'),\n",
       " ('Port of Budapest', 'Port of Salalah'),\n",
       " ('Port of Budapest', 'Port of Gaza'),\n",
       " ('Port of Budapest', 'Port of Jebel Ali'),\n",
       " ('Port of Jawaharlal Nehru', 'Port of Salalah'),\n",
       " ('Port of Jawaharlal Nehru', 'Port of Gaza'),\n",
       " ('Port of Jawaharlal Nehru', 'Port of Jebel Ali'),\n",
       " ('Port of Gioia Tauro', 'Port of Salalah'),\n",
       " ('Port of Gioia Tauro', 'Port of Gaza'),\n",
       " ('Port of Gioia Tauro', 'Port of Jebel Ali'),\n",
       " ('Port of Nagoya', 'Port of Salalah'),\n",
       " ('Port of Nagoya', 'Port of Gaza'),\n",
       " ('Port of Nagoya', 'Port of Jebel Ali'),\n",
       " ('Port of Busan', 'Port of Salalah'),\n",
       " ('Port of Busan', 'Port of Gaza'),\n",
       " ('Port of Busan', 'Port of Jebel Ali'),\n",
       " ('Penang Port', 'Port of Salalah'),\n",
       " ('Penang Port', 'Port of Gaza'),\n",
       " ('Penang Port', 'Port of Jebel Ali'),\n",
       " ('Port of Manzanillo', 'Port of Salalah'),\n",
       " ('Port of Manzanillo', 'Port of Gaza'),\n",
       " ('Port of Manzanillo', 'Port of Jebel Ali'),\n",
       " ('Port of Rotterdam', 'Port of Salalah'),\n",
       " ('Port of Rotterdam', 'Port of Gaza'),\n",
       " ('Port of Rotterdam', 'Port of Jebel Ali'),\n",
       " ('Port of Gdansk', 'Port of Salalah'),\n",
       " ('Port of Gdansk', 'Port of Gaza'),\n",
       " ('Port of Gdansk', 'Port of Jebel Ali'),\n",
       " ('Port of Vladivostok', 'Port of Salalah'),\n",
       " ('Port of Vladivostok', 'Port of Gaza'),\n",
       " ('Port of Vladivostok', 'Port of Jebel Ali'),\n",
       " ('Port of Novorossiysk', 'Port of Salalah'),\n",
       " ('Port of Novorossiysk', 'Port of Gaza'),\n",
       " ('Port of Novorossiysk', 'Port of Jebel Ali'),\n",
       " ('Port of St. Petersburg', 'Port of Salalah'),\n",
       " ('Port of St. Petersburg', 'Port of Gaza'),\n",
       " ('Port of St. Petersburg', 'Port of Jebel Ali'),\n",
       " ('Port of Algeciras', 'Port of Salalah'),\n",
       " ('Port of Algeciras', 'Port of Gaza'),\n",
       " ('Port of Algeciras', 'Port of Jebel Ali'),\n",
       " ('Port of Bangkok', 'Port of Salalah'),\n",
       " ('Port of Bangkok', 'Port of Gaza'),\n",
       " ('Port of Bangkok', 'Port of Jebel Ali'),\n",
       " ('Port of Mersin', 'Port of Salalah'),\n",
       " ('Port of Mersin', 'Port of Gaza'),\n",
       " ('Port of Mersin', 'Port of Jebel Ali'),\n",
       " ('Port of Immingham', 'Port of Salalah'),\n",
       " ('Port of Immingham', 'Port of Gaza'),\n",
       " ('Port of Immingham', 'Port of Jebel Ali'),\n",
       " ('Port of New York', 'Port of Salalah'),\n",
       " ('Port of New York', 'Port of Gaza'),\n",
       " ('Port of New York', 'Port of Jebel Ali'),\n",
       " ('Port of Los Angeles', 'Port of Salalah'),\n",
       " ('Port of Los Angeles', 'Port of Gaza'),\n",
       " ('Port of Los Angeles', 'Port of Jebel Ali'),\n",
       " ('Port of Saigon', 'Port of Salalah'),\n",
       " ('Port of Saigon', 'Port of Gaza'),\n",
       " ('Port of Saigon', 'Port of Jebel Ali')]"
      ]
     },
     "execution_count": 15,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "routes"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "metadata": {},
   "outputs": [],
   "source": [
    "# Decision Variables\n",
    "X = LpVariable.dicts(\"ShipmentAmount\",(supply_points, demand_points),0)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'Port of Vienna': {'Port of Salalah': ShipmentAmount_Port_of_Vienna_Port_of_Salalah,\n",
       "  'Port of Gaza': ShipmentAmount_Port_of_Vienna_Port_of_Gaza,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Vienna_Port_of_Jebel_Ali},\n",
       " 'Port of Antwerp': {'Port of Salalah': ShipmentAmount_Port_of_Antwerp_Port_of_Salalah,\n",
       "  'Port of Gaza': ShipmentAmount_Port_of_Antwerp_Port_of_Gaza,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Antwerp_Port_of_Jebel_Ali},\n",
       " 'Port of Shanghai': {'Port of Salalah': ShipmentAmount_Port_of_Shanghai_Port_of_Salalah,\n",
       "  'Port of Gaza': ShipmentAmount_Port_of_Shanghai_Port_of_Gaza,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Shanghai_Port_of_Jebel_Ali},\n",
       " 'Port of Hamburg_Czeck': {'Port of Salalah': ShipmentAmount_Port_of_Hamburg_Czeck_Port_of_Salalah,\n",
       "  'Port of Gaza': ShipmentAmount_Port_of_Hamburg_Czeck_Port_of_Gaza,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Hamburg_Czeck_Port_of_Jebel_Ali},\n",
       " 'Port of Marseille': {'Port of Salalah': ShipmentAmount_Port_of_Marseille_Port_of_Salalah,\n",
       "  'Port of Gaza': ShipmentAmount_Port_of_Marseille_Port_of_Gaza,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Marseille_Port_of_Jebel_Ali},\n",
       " 'Port of Hamburg_Germany': {'Port of Salalah': ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Salalah,\n",
       "  'Port of Gaza': ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Gaza,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Jebel_Ali},\n",
       " 'Port of Hong Kong': {'Port of Salalah': ShipmentAmount_Port_of_Hong_Kong_Port_of_Salalah,\n",
       "  'Port of Gaza': ShipmentAmount_Port_of_Hong_Kong_Port_of_Gaza,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Hong_Kong_Port_of_Jebel_Ali},\n",
       " 'Port of Budapest': {'Port of Salalah': ShipmentAmount_Port_of_Budapest_Port_of_Salalah,\n",
       "  'Port of Gaza': ShipmentAmount_Port_of_Budapest_Port_of_Gaza,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Budapest_Port_of_Jebel_Ali},\n",
       " 'Port of Jawaharlal Nehru': {'Port of Salalah': ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Salalah,\n",
       "  'Port of Gaza': ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Gaza,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Jebel_Ali},\n",
       " 'Port of Gioia Tauro': {'Port of Salalah': ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Salalah,\n",
       "  'Port of Gaza': ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Gaza,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Jebel_Ali},\n",
       " 'Port of Nagoya': {'Port of Salalah': ShipmentAmount_Port_of_Nagoya_Port_of_Salalah,\n",
       "  'Port of Gaza': ShipmentAmount_Port_of_Nagoya_Port_of_Gaza,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Nagoya_Port_of_Jebel_Ali},\n",
       " 'Port of Busan': {'Port of Salalah': ShipmentAmount_Port_of_Busan_Port_of_Salalah,\n",
       "  'Port of Gaza': ShipmentAmount_Port_of_Busan_Port_of_Gaza,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Busan_Port_of_Jebel_Ali},\n",
       " 'Penang Port': {'Port of Salalah': ShipmentAmount_Penang_Port_Port_of_Salalah,\n",
       "  'Port of Gaza': ShipmentAmount_Penang_Port_Port_of_Gaza,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Penang_Port_Port_of_Jebel_Ali},\n",
       " 'Port of Manzanillo': {'Port of Salalah': ShipmentAmount_Port_of_Manzanillo_Port_of_Salalah,\n",
       "  'Port of Gaza': ShipmentAmount_Port_of_Manzanillo_Port_of_Gaza,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Manzanillo_Port_of_Jebel_Ali},\n",
       " 'Port of Rotterdam': {'Port of Salalah': ShipmentAmount_Port_of_Rotterdam_Port_of_Salalah,\n",
       "  'Port of Gaza': ShipmentAmount_Port_of_Rotterdam_Port_of_Gaza,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Rotterdam_Port_of_Jebel_Ali},\n",
       " 'Port of Gdansk': {'Port of Salalah': ShipmentAmount_Port_of_Gdansk_Port_of_Salalah,\n",
       "  'Port of Gaza': ShipmentAmount_Port_of_Gdansk_Port_of_Gaza,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Gdansk_Port_of_Jebel_Ali},\n",
       " 'Port of Vladivostok': {'Port of Salalah': ShipmentAmount_Port_of_Vladivostok_Port_of_Salalah,\n",
       "  'Port of Gaza': ShipmentAmount_Port_of_Vladivostok_Port_of_Gaza,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Vladivostok_Port_of_Jebel_Ali},\n",
       " 'Port of Novorossiysk': {'Port of Salalah': ShipmentAmount_Port_of_Novorossiysk_Port_of_Salalah,\n",
       "  'Port of Gaza': ShipmentAmount_Port_of_Novorossiysk_Port_of_Gaza,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Novorossiysk_Port_of_Jebel_Ali},\n",
       " 'Port of St. Petersburg': {'Port of Salalah': ShipmentAmount_Port_of_St._Petersburg_Port_of_Salalah,\n",
       "  'Port of Gaza': ShipmentAmount_Port_of_St._Petersburg_Port_of_Gaza,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_St._Petersburg_Port_of_Jebel_Ali},\n",
       " 'Port of Algeciras': {'Port of Salalah': ShipmentAmount_Port_of_Algeciras_Port_of_Salalah,\n",
       "  'Port of Gaza': ShipmentAmount_Port_of_Algeciras_Port_of_Gaza,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Algeciras_Port_of_Jebel_Ali},\n",
       " 'Port of Bangkok': {'Port of Salalah': ShipmentAmount_Port_of_Bangkok_Port_of_Salalah,\n",
       "  'Port of Gaza': ShipmentAmount_Port_of_Bangkok_Port_of_Gaza,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Bangkok_Port_of_Jebel_Ali},\n",
       " 'Port of Mersin': {'Port of Salalah': ShipmentAmount_Port_of_Mersin_Port_of_Salalah,\n",
       "  'Port of Gaza': ShipmentAmount_Port_of_Mersin_Port_of_Gaza,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Mersin_Port_of_Jebel_Ali},\n",
       " 'Port of Immingham': {'Port of Salalah': ShipmentAmount_Port_of_Immingham_Port_of_Salalah,\n",
       "  'Port of Gaza': ShipmentAmount_Port_of_Immingham_Port_of_Gaza,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Immingham_Port_of_Jebel_Ali},\n",
       " 'Port of New York': {'Port of Salalah': ShipmentAmount_Port_of_New_York_Port_of_Salalah,\n",
       "  'Port of Gaza': ShipmentAmount_Port_of_New_York_Port_of_Gaza,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_New_York_Port_of_Jebel_Ali},\n",
       " 'Port of Los Angeles': {'Port of Salalah': ShipmentAmount_Port_of_Los_Angeles_Port_of_Salalah,\n",
       "  'Port of Gaza': ShipmentAmount_Port_of_Los_Angeles_Port_of_Gaza,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Los_Angeles_Port_of_Jebel_Ali},\n",
       " 'Port of Saigon': {'Port of Salalah': ShipmentAmount_Port_of_Saigon_Port_of_Salalah,\n",
       "  'Port of Gaza': ShipmentAmount_Port_of_Saigon_Port_of_Gaza,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Saigon_Port_of_Jebel_Ali}}"
      ]
     },
     "execution_count": 17,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "X"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "metadata": {},
   "outputs": [],
   "source": [
    "# Objective Function\n",
    "prob += sum(X[i][j]*distance[i][j] for (i,j) in routes)\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 19,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "Transportation:\n",
       "MINIMIZE\n",
       "5210*ShipmentAmount_Penang_Port_Port_of_Gaza + 3601*ShipmentAmount_Penang_Port_Port_of_Jebel_Ali + 3245*ShipmentAmount_Penang_Port_Port_of_Salalah + 2004*ShipmentAmount_Port_of_Algeciras_Port_of_Gaza + 5377*ShipmentAmount_Port_of_Algeciras_Port_of_Jebel_Ali + 4378*ShipmentAmount_Port_of_Algeciras_Port_of_Salalah + 3327.94*ShipmentAmount_Port_of_Antwerp_Port_of_Gaza + 6938*ShipmentAmount_Port_of_Antwerp_Port_of_Jebel_Ali + 5939*ShipmentAmount_Port_of_Antwerp_Port_of_Salalah + 6341*ShipmentAmount_Port_of_Bangkok_Port_of_Gaza + 4847*ShipmentAmount_Port_of_Bangkok_Port_of_Jebel_Ali + 4490*ShipmentAmount_Port_of_Bangkok_Port_of_Salalah + 1992*ShipmentAmount_Port_of_Budapest_Port_of_Gaza + 5360*ShipmentAmount_Port_of_Budapest_Port_of_Jebel_Ali + 4362*ShipmentAmount_Port_of_Budapest_Port_of_Salalah + 8020*ShipmentAmount_Port_of_Busan_Port_of_Gaza + 7143*ShipmentAmount_Port_of_Busan_Port_of_Jebel_Ali + 6786*ShipmentAmount_Port_of_Busan_Port_of_Salalah + 4119*ShipmentAmount_Port_of_Gdansk_Port_of_Gaza + 8025*ShipmentAmount_Port_of_Gdansk_Port_of_Jebel_Ali + 7025*ShipmentAmount_Port_of_Gdansk_Port_of_Salalah + 1336*ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Gaza + 4366*ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Jebel_Ali + 3367*ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Salalah + 3595.7*ShipmentAmount_Port_of_Hamburg_Czeck_Port_of_Gaza + 7306*ShipmentAmount_Port_of_Hamburg_Czeck_Port_of_Jebel_Ali + 6307*ShipmentAmount_Port_of_Hamburg_Czeck_Port_of_Salalah + 3595.7*ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Gaza + 7306*ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Jebel_Ali + 6307*ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Salalah + 6949*ShipmentAmount_Port_of_Hong_Kong_Port_of_Gaza + 5766*ShipmentAmount_Port_of_Hong_Kong_Port_of_Jebel_Ali + 5410*ShipmentAmount_Port_of_Hong_Kong_Port_of_Salalah + 3399*ShipmentAmount_Port_of_Immingham_Port_of_Gaza + 7080*ShipmentAmount_Port_of_Immingham_Port_of_Jebel_Ali + 6081*ShipmentAmount_Port_of_Immingham_Port_of_Salalah + 3243*ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Gaza + 1335*ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Jebel_Ali + 1143*ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Salalah + 9280*ShipmentAmount_Port_of_Los_Angeles_Port_of_Gaza + 11116*ShipmentAmount_Port_of_Los_Angeles_Port_of_Jebel_Ali + 11137*ShipmentAmount_Port_of_Los_Angeles_Port_of_Salalah + 8088*ShipmentAmount_Port_of_Manzanillo_Port_of_Gaza + 12790*ShipmentAmount_Port_of_Manzanillo_Port_of_Jebel_Ali + 11791*ShipmentAmount_Port_of_Manzanillo_Port_of_Salalah + 1631*ShipmentAmount_Port_of_Marseille_Port_of_Gaza + 5080*ShipmentAmount_Port_of_Marseille_Port_of_Jebel_Ali + 4081*ShipmentAmount_Port_of_Marseille_Port_of_Salalah + 316*ShipmentAmount_Port_of_Mersin_Port_of_Gaza + 3576*ShipmentAmount_Port_of_Mersin_Port_of_Jebel_Ali + 2577*ShipmentAmount_Port_of_Mersin_Port_of_Salalah + 8308*ShipmentAmount_Port_of_Nagoya_Port_of_Gaza + 7505*ShipmentAmount_Port_of_Nagoya_Port_of_Jebel_Ali + 7148*ShipmentAmount_Port_of_Nagoya_Port_of_Salalah + 5196*ShipmentAmount_Port_of_New_York_Port_of_Gaza + 8918*ShipmentAmount_Port_of_New_York_Port_of_Jebel_Ali + 7930*ShipmentAmount_Port_of_New_York_Port_of_Salalah + 1295*ShipmentAmount_Port_of_Novorossiysk_Port_of_Gaza + 4885*ShipmentAmount_Port_of_Novorossiysk_Port_of_Jebel_Ali + 3886*ShipmentAmount_Port_of_Novorossiysk_Port_of_Salalah + 3335*ShipmentAmount_Port_of_Rotterdam_Port_of_Gaza + 7029*ShipmentAmount_Port_of_Rotterdam_Port_of_Jebel_Ali + 6030*ShipmentAmount_Port_of_Rotterdam_Port_of_Salalah + 6368*ShipmentAmount_Port_of_Saigon_Port_of_Gaza + 4709*ShipmentAmount_Port_of_Saigon_Port_of_Jebel_Ali + 4353*ShipmentAmount_Port_of_Saigon_Port_of_Salalah + 7660*ShipmentAmount_Port_of_Shanghai_Port_of_Gaza + 6627*ShipmentAmount_Port_of_Shanghai_Port_of_Jebel_Ali + 6270*ShipmentAmount_Port_of_Shanghai_Port_of_Salalah + 4545*ShipmentAmount_Port_of_St._Petersburg_Port_of_Gaza + 8532*ShipmentAmount_Port_of_St._Petersburg_Port_of_Jebel_Ali + 7533*ShipmentAmount_Port_of_St._Petersburg_Port_of_Salalah + 2106*ShipmentAmount_Port_of_Vienna_Port_of_Gaza + 5475*ShipmentAmount_Port_of_Vienna_Port_of_Jebel_Ali + 4476*ShipmentAmount_Port_of_Vienna_Port_of_Salalah + 8522*ShipmentAmount_Port_of_Vladivostok_Port_of_Gaza + 7727*ShipmentAmount_Port_of_Vladivostok_Port_of_Jebel_Ali + 7370*ShipmentAmount_Port_of_Vladivostok_Port_of_Salalah + 0.0\n",
       "VARIABLES\n",
       "ShipmentAmount_Penang_Port_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Penang_Port_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Penang_Port_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Algeciras_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Algeciras_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Algeciras_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Antwerp_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Antwerp_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Antwerp_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Bangkok_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Bangkok_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Bangkok_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Budapest_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Budapest_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Budapest_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Busan_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Busan_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Busan_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Gdansk_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Gdansk_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Gdansk_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Hamburg_Czeck_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Hamburg_Czeck_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Hamburg_Czeck_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Hong_Kong_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Hong_Kong_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Hong_Kong_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Immingham_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Immingham_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Immingham_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Los_Angeles_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Los_Angeles_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Los_Angeles_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Manzanillo_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Manzanillo_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Manzanillo_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Marseille_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Marseille_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Marseille_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Mersin_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Mersin_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Mersin_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Nagoya_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Nagoya_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Nagoya_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_New_York_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_New_York_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_New_York_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Novorossiysk_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Novorossiysk_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Novorossiysk_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Rotterdam_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Rotterdam_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Rotterdam_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Saigon_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Saigon_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Saigon_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Shanghai_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Shanghai_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Shanghai_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_St._Petersburg_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_St._Petersburg_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_St._Petersburg_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Vienna_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Vienna_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Vienna_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Vladivostok_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Vladivostok_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Vladivostok_Port_of_Salalah Continuous"
      ]
     },
     "execution_count": 19,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "prob"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 20,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "Transportation:\n",
       "MINIMIZE\n",
       "5210*ShipmentAmount_Penang_Port_Port_of_Gaza + 3601*ShipmentAmount_Penang_Port_Port_of_Jebel_Ali + 3245*ShipmentAmount_Penang_Port_Port_of_Salalah + 2004*ShipmentAmount_Port_of_Algeciras_Port_of_Gaza + 5377*ShipmentAmount_Port_of_Algeciras_Port_of_Jebel_Ali + 4378*ShipmentAmount_Port_of_Algeciras_Port_of_Salalah + 3327.94*ShipmentAmount_Port_of_Antwerp_Port_of_Gaza + 6938*ShipmentAmount_Port_of_Antwerp_Port_of_Jebel_Ali + 5939*ShipmentAmount_Port_of_Antwerp_Port_of_Salalah + 6341*ShipmentAmount_Port_of_Bangkok_Port_of_Gaza + 4847*ShipmentAmount_Port_of_Bangkok_Port_of_Jebel_Ali + 4490*ShipmentAmount_Port_of_Bangkok_Port_of_Salalah + 1992*ShipmentAmount_Port_of_Budapest_Port_of_Gaza + 5360*ShipmentAmount_Port_of_Budapest_Port_of_Jebel_Ali + 4362*ShipmentAmount_Port_of_Budapest_Port_of_Salalah + 8020*ShipmentAmount_Port_of_Busan_Port_of_Gaza + 7143*ShipmentAmount_Port_of_Busan_Port_of_Jebel_Ali + 6786*ShipmentAmount_Port_of_Busan_Port_of_Salalah + 4119*ShipmentAmount_Port_of_Gdansk_Port_of_Gaza + 8025*ShipmentAmount_Port_of_Gdansk_Port_of_Jebel_Ali + 7025*ShipmentAmount_Port_of_Gdansk_Port_of_Salalah + 1336*ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Gaza + 4366*ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Jebel_Ali + 3367*ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Salalah + 3595.7*ShipmentAmount_Port_of_Hamburg_Czeck_Port_of_Gaza + 7306*ShipmentAmount_Port_of_Hamburg_Czeck_Port_of_Jebel_Ali + 6307*ShipmentAmount_Port_of_Hamburg_Czeck_Port_of_Salalah + 3595.7*ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Gaza + 7306*ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Jebel_Ali + 6307*ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Salalah + 6949*ShipmentAmount_Port_of_Hong_Kong_Port_of_Gaza + 5766*ShipmentAmount_Port_of_Hong_Kong_Port_of_Jebel_Ali + 5410*ShipmentAmount_Port_of_Hong_Kong_Port_of_Salalah + 3399*ShipmentAmount_Port_of_Immingham_Port_of_Gaza + 7080*ShipmentAmount_Port_of_Immingham_Port_of_Jebel_Ali + 6081*ShipmentAmount_Port_of_Immingham_Port_of_Salalah + 3243*ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Gaza + 1335*ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Jebel_Ali + 1143*ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Salalah + 9280*ShipmentAmount_Port_of_Los_Angeles_Port_of_Gaza + 11116*ShipmentAmount_Port_of_Los_Angeles_Port_of_Jebel_Ali + 11137*ShipmentAmount_Port_of_Los_Angeles_Port_of_Salalah + 8088*ShipmentAmount_Port_of_Manzanillo_Port_of_Gaza + 12790*ShipmentAmount_Port_of_Manzanillo_Port_of_Jebel_Ali + 11791*ShipmentAmount_Port_of_Manzanillo_Port_of_Salalah + 1631*ShipmentAmount_Port_of_Marseille_Port_of_Gaza + 5080*ShipmentAmount_Port_of_Marseille_Port_of_Jebel_Ali + 4081*ShipmentAmount_Port_of_Marseille_Port_of_Salalah + 316*ShipmentAmount_Port_of_Mersin_Port_of_Gaza + 3576*ShipmentAmount_Port_of_Mersin_Port_of_Jebel_Ali + 2577*ShipmentAmount_Port_of_Mersin_Port_of_Salalah + 8308*ShipmentAmount_Port_of_Nagoya_Port_of_Gaza + 7505*ShipmentAmount_Port_of_Nagoya_Port_of_Jebel_Ali + 7148*ShipmentAmount_Port_of_Nagoya_Port_of_Salalah + 5196*ShipmentAmount_Port_of_New_York_Port_of_Gaza + 8918*ShipmentAmount_Port_of_New_York_Port_of_Jebel_Ali + 7930*ShipmentAmount_Port_of_New_York_Port_of_Salalah + 1295*ShipmentAmount_Port_of_Novorossiysk_Port_of_Gaza + 4885*ShipmentAmount_Port_of_Novorossiysk_Port_of_Jebel_Ali + 3886*ShipmentAmount_Port_of_Novorossiysk_Port_of_Salalah + 3335*ShipmentAmount_Port_of_Rotterdam_Port_of_Gaza + 7029*ShipmentAmount_Port_of_Rotterdam_Port_of_Jebel_Ali + 6030*ShipmentAmount_Port_of_Rotterdam_Port_of_Salalah + 6368*ShipmentAmount_Port_of_Saigon_Port_of_Gaza + 4709*ShipmentAmount_Port_of_Saigon_Port_of_Jebel_Ali + 4353*ShipmentAmount_Port_of_Saigon_Port_of_Salalah + 7660*ShipmentAmount_Port_of_Shanghai_Port_of_Gaza + 6627*ShipmentAmount_Port_of_Shanghai_Port_of_Jebel_Ali + 6270*ShipmentAmount_Port_of_Shanghai_Port_of_Salalah + 4545*ShipmentAmount_Port_of_St._Petersburg_Port_of_Gaza + 8532*ShipmentAmount_Port_of_St._Petersburg_Port_of_Jebel_Ali + 7533*ShipmentAmount_Port_of_St._Petersburg_Port_of_Salalah + 2106*ShipmentAmount_Port_of_Vienna_Port_of_Gaza + 5475*ShipmentAmount_Port_of_Vienna_Port_of_Jebel_Ali + 4476*ShipmentAmount_Port_of_Vienna_Port_of_Salalah + 8522*ShipmentAmount_Port_of_Vladivostok_Port_of_Gaza + 7727*ShipmentAmount_Port_of_Vladivostok_Port_of_Jebel_Ali + 7370*ShipmentAmount_Port_of_Vladivostok_Port_of_Salalah + 0.0\n",
       "SUBJECT TO\n",
       "_C1: ShipmentAmount_Penang_Port_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Algeciras_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Antwerp_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Bangkok_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Budapest_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Busan_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Gdansk_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Hamburg_Czeck_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Hong_Kong_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Immingham_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Los_Angeles_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Manzanillo_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Marseille_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Mersin_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Nagoya_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_New_York_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Novorossiysk_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Rotterdam_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Saigon_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Shanghai_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_St._Petersburg_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Vienna_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Vladivostok_Port_of_Salalah >= 25877189.32\n",
       "\n",
       "_C2: ShipmentAmount_Penang_Port_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Algeciras_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Antwerp_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Bangkok_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Budapest_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Busan_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Gdansk_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Hamburg_Czeck_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Hong_Kong_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Immingham_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Los_Angeles_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Manzanillo_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Marseille_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Mersin_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Nagoya_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_New_York_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Novorossiysk_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Rotterdam_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Saigon_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Shanghai_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_St._Petersburg_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Vienna_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Vladivostok_Port_of_Gaza >= 23750237.12\n",
       "\n",
       "_C3: ShipmentAmount_Penang_Port_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Algeciras_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Antwerp_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Bangkok_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Budapest_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Busan_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Gdansk_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Hamburg_Czeck_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Hong_Kong_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Immingham_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Los_Angeles_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Manzanillo_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Marseille_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Mersin_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Nagoya_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_New_York_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Novorossiysk_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Rotterdam_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Saigon_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Shanghai_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_St._Petersburg_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Vienna_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Vladivostok_Port_of_Jebel_Ali >= 27507802.95\n",
       "\n",
       "VARIABLES\n",
       "ShipmentAmount_Penang_Port_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Penang_Port_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Penang_Port_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Algeciras_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Algeciras_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Algeciras_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Antwerp_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Antwerp_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Antwerp_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Bangkok_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Bangkok_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Bangkok_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Budapest_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Budapest_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Budapest_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Busan_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Busan_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Busan_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Gdansk_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Gdansk_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Gdansk_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Hamburg_Czeck_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Hamburg_Czeck_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Hamburg_Czeck_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Hong_Kong_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Hong_Kong_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Hong_Kong_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Immingham_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Immingham_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Immingham_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Los_Angeles_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Los_Angeles_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Los_Angeles_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Manzanillo_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Manzanillo_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Manzanillo_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Marseille_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Marseille_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Marseille_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Mersin_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Mersin_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Mersin_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Nagoya_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Nagoya_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Nagoya_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_New_York_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_New_York_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_New_York_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Novorossiysk_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Novorossiysk_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Novorossiysk_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Rotterdam_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Rotterdam_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Rotterdam_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Saigon_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Saigon_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Saigon_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Shanghai_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Shanghai_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Shanghai_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_St._Petersburg_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_St._Petersburg_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_St._Petersburg_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Vienna_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Vienna_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Vienna_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Vladivostok_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Vladivostok_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Vladivostok_Port_of_Salalah Continuous"
      ]
     },
     "execution_count": 20,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# Constraints\n",
    "for j in demand_points:\n",
    "    prob += sum(X[i][j] for i in supply_points) >= glass_demand[j]\n",
    "    \n",
    "prob"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "Transportation:\n",
       "MINIMIZE\n",
       "5210*ShipmentAmount_Penang_Port_Port_of_Gaza + 3601*ShipmentAmount_Penang_Port_Port_of_Jebel_Ali + 3245*ShipmentAmount_Penang_Port_Port_of_Salalah + 2004*ShipmentAmount_Port_of_Algeciras_Port_of_Gaza + 5377*ShipmentAmount_Port_of_Algeciras_Port_of_Jebel_Ali + 4378*ShipmentAmount_Port_of_Algeciras_Port_of_Salalah + 3327.94*ShipmentAmount_Port_of_Antwerp_Port_of_Gaza + 6938*ShipmentAmount_Port_of_Antwerp_Port_of_Jebel_Ali + 5939*ShipmentAmount_Port_of_Antwerp_Port_of_Salalah + 6341*ShipmentAmount_Port_of_Bangkok_Port_of_Gaza + 4847*ShipmentAmount_Port_of_Bangkok_Port_of_Jebel_Ali + 4490*ShipmentAmount_Port_of_Bangkok_Port_of_Salalah + 1992*ShipmentAmount_Port_of_Budapest_Port_of_Gaza + 5360*ShipmentAmount_Port_of_Budapest_Port_of_Jebel_Ali + 4362*ShipmentAmount_Port_of_Budapest_Port_of_Salalah + 8020*ShipmentAmount_Port_of_Busan_Port_of_Gaza + 7143*ShipmentAmount_Port_of_Busan_Port_of_Jebel_Ali + 6786*ShipmentAmount_Port_of_Busan_Port_of_Salalah + 4119*ShipmentAmount_Port_of_Gdansk_Port_of_Gaza + 8025*ShipmentAmount_Port_of_Gdansk_Port_of_Jebel_Ali + 7025*ShipmentAmount_Port_of_Gdansk_Port_of_Salalah + 1336*ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Gaza + 4366*ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Jebel_Ali + 3367*ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Salalah + 3595.7*ShipmentAmount_Port_of_Hamburg_Czeck_Port_of_Gaza + 7306*ShipmentAmount_Port_of_Hamburg_Czeck_Port_of_Jebel_Ali + 6307*ShipmentAmount_Port_of_Hamburg_Czeck_Port_of_Salalah + 3595.7*ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Gaza + 7306*ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Jebel_Ali + 6307*ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Salalah + 6949*ShipmentAmount_Port_of_Hong_Kong_Port_of_Gaza + 5766*ShipmentAmount_Port_of_Hong_Kong_Port_of_Jebel_Ali + 5410*ShipmentAmount_Port_of_Hong_Kong_Port_of_Salalah + 3399*ShipmentAmount_Port_of_Immingham_Port_of_Gaza + 7080*ShipmentAmount_Port_of_Immingham_Port_of_Jebel_Ali + 6081*ShipmentAmount_Port_of_Immingham_Port_of_Salalah + 3243*ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Gaza + 1335*ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Jebel_Ali + 1143*ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Salalah + 9280*ShipmentAmount_Port_of_Los_Angeles_Port_of_Gaza + 11116*ShipmentAmount_Port_of_Los_Angeles_Port_of_Jebel_Ali + 11137*ShipmentAmount_Port_of_Los_Angeles_Port_of_Salalah + 8088*ShipmentAmount_Port_of_Manzanillo_Port_of_Gaza + 12790*ShipmentAmount_Port_of_Manzanillo_Port_of_Jebel_Ali + 11791*ShipmentAmount_Port_of_Manzanillo_Port_of_Salalah + 1631*ShipmentAmount_Port_of_Marseille_Port_of_Gaza + 5080*ShipmentAmount_Port_of_Marseille_Port_of_Jebel_Ali + 4081*ShipmentAmount_Port_of_Marseille_Port_of_Salalah + 316*ShipmentAmount_Port_of_Mersin_Port_of_Gaza + 3576*ShipmentAmount_Port_of_Mersin_Port_of_Jebel_Ali + 2577*ShipmentAmount_Port_of_Mersin_Port_of_Salalah + 8308*ShipmentAmount_Port_of_Nagoya_Port_of_Gaza + 7505*ShipmentAmount_Port_of_Nagoya_Port_of_Jebel_Ali + 7148*ShipmentAmount_Port_of_Nagoya_Port_of_Salalah + 5196*ShipmentAmount_Port_of_New_York_Port_of_Gaza + 8918*ShipmentAmount_Port_of_New_York_Port_of_Jebel_Ali + 7930*ShipmentAmount_Port_of_New_York_Port_of_Salalah + 1295*ShipmentAmount_Port_of_Novorossiysk_Port_of_Gaza + 4885*ShipmentAmount_Port_of_Novorossiysk_Port_of_Jebel_Ali + 3886*ShipmentAmount_Port_of_Novorossiysk_Port_of_Salalah + 3335*ShipmentAmount_Port_of_Rotterdam_Port_of_Gaza + 7029*ShipmentAmount_Port_of_Rotterdam_Port_of_Jebel_Ali + 6030*ShipmentAmount_Port_of_Rotterdam_Port_of_Salalah + 6368*ShipmentAmount_Port_of_Saigon_Port_of_Gaza + 4709*ShipmentAmount_Port_of_Saigon_Port_of_Jebel_Ali + 4353*ShipmentAmount_Port_of_Saigon_Port_of_Salalah + 7660*ShipmentAmount_Port_of_Shanghai_Port_of_Gaza + 6627*ShipmentAmount_Port_of_Shanghai_Port_of_Jebel_Ali + 6270*ShipmentAmount_Port_of_Shanghai_Port_of_Salalah + 4545*ShipmentAmount_Port_of_St._Petersburg_Port_of_Gaza + 8532*ShipmentAmount_Port_of_St._Petersburg_Port_of_Jebel_Ali + 7533*ShipmentAmount_Port_of_St._Petersburg_Port_of_Salalah + 2106*ShipmentAmount_Port_of_Vienna_Port_of_Gaza + 5475*ShipmentAmount_Port_of_Vienna_Port_of_Jebel_Ali + 4476*ShipmentAmount_Port_of_Vienna_Port_of_Salalah + 8522*ShipmentAmount_Port_of_Vladivostok_Port_of_Gaza + 7727*ShipmentAmount_Port_of_Vladivostok_Port_of_Jebel_Ali + 7370*ShipmentAmount_Port_of_Vladivostok_Port_of_Salalah + 0.0\n",
       "SUBJECT TO\n",
       "_C1: ShipmentAmount_Penang_Port_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Algeciras_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Antwerp_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Bangkok_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Budapest_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Busan_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Gdansk_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Hamburg_Czeck_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Hong_Kong_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Immingham_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Los_Angeles_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Manzanillo_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Marseille_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Mersin_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Nagoya_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_New_York_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Novorossiysk_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Rotterdam_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Saigon_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Shanghai_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_St._Petersburg_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Vienna_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Vladivostok_Port_of_Salalah >= 25877189.32\n",
       "\n",
       "_C2: ShipmentAmount_Penang_Port_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Algeciras_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Antwerp_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Bangkok_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Budapest_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Busan_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Gdansk_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Hamburg_Czeck_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Hong_Kong_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Immingham_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Los_Angeles_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Manzanillo_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Marseille_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Mersin_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Nagoya_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_New_York_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Novorossiysk_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Rotterdam_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Saigon_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Shanghai_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_St._Petersburg_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Vienna_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Vladivostok_Port_of_Gaza >= 23750237.12\n",
       "\n",
       "_C3: ShipmentAmount_Penang_Port_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Algeciras_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Antwerp_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Bangkok_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Budapest_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Busan_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Gdansk_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Hamburg_Czeck_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Hong_Kong_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Immingham_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Los_Angeles_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Manzanillo_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Marseille_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Mersin_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Nagoya_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_New_York_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Novorossiysk_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Rotterdam_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Saigon_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Shanghai_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_St._Petersburg_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Vienna_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Vladivostok_Port_of_Jebel_Ali >= 27507802.95\n",
       "\n",
       "_C4: ShipmentAmount_Port_of_Vienna_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Vienna_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Vienna_Port_of_Salalah = 897756.3973\n",
       "\n",
       "_C5: ShipmentAmount_Port_of_Antwerp_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Antwerp_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Antwerp_Port_of_Salalah = 3142147.379\n",
       "\n",
       "_C6: ShipmentAmount_Port_of_Shanghai_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Shanghai_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Shanghai_Port_of_Salalah = 16877821.21\n",
       "\n",
       "_C7: ShipmentAmount_Port_of_Hamburg_Czeck_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Hamburg_Czeck_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Hamburg_Czeck_Port_of_Salalah = 2513717.904\n",
       "\n",
       "_C8: ShipmentAmount_Port_of_Marseille_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Marseille_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Marseille_Port_of_Salalah = 4039903.774\n",
       "\n",
       "_C9: ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Salalah = 9785544.696\n",
       "\n",
       "_C10: ShipmentAmount_Port_of_Hong_Kong_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Hong_Kong_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Hong_Kong_Port_of_Salalah = 3788531.983\n",
       "\n",
       "_C11: ShipmentAmount_Port_of_Budapest_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Budapest_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Budapest_Port_of_Salalah = 1346634.591\n",
       "\n",
       "_C12: ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Salalah = 1256858.952\n",
       "\n",
       "_C13: ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Salalah = 3411474.298\n",
       "\n",
       "_C14: ShipmentAmount_Port_of_Nagoya_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Nagoya_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Nagoya_Port_of_Salalah = 4039903.774\n",
       "\n",
       "_C15: ShipmentAmount_Port_of_Busan_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Busan_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Busan_Port_of_Salalah = 1975064.067\n",
       "\n",
       "_C16: ShipmentAmount_Penang_Port_Port_of_Gaza\n",
       " + ShipmentAmount_Penang_Port_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Penang_Port_Port_of_Salalah = 1526185.87\n",
       "\n",
       "_C17: ShipmentAmount_Port_of_Manzanillo_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Manzanillo_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Manzanillo_Port_of_Salalah = 1975064.067\n",
       "\n",
       "_C18: ShipmentAmount_Port_of_Rotterdam_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Rotterdam_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Rotterdam_Port_of_Salalah = 1705737.149\n",
       "\n",
       "_C19: ShipmentAmount_Port_of_Gdansk_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Gdansk_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Gdansk_Port_of_Salalah = 3052371.74\n",
       "\n",
       "_C20: ShipmentAmount_Port_of_Vladivostok_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Vladivostok_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Vladivostok_Port_of_Salalah = 498472.9915\n",
       "\n",
       "_C21: ShipmentAmount_Port_of_Novorossiysk_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Novorossiysk_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Novorossiysk_Port_of_Salalah = 243131.0679\n",
       "\n",
       "_C22: ShipmentAmount_Port_of_St._Petersburg_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_St._Petersburg_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_St._Petersburg_Port_of_Salalah = 245927.9741\n",
       "\n",
       "_C23: ShipmentAmount_Port_of_Algeciras_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Algeciras_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Algeciras_Port_of_Salalah = 1615961.509\n",
       "\n",
       "_C24: ShipmentAmount_Port_of_Bangkok_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Bangkok_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Bangkok_Port_of_Salalah = 1077307.673\n",
       "\n",
       "_C25: ShipmentAmount_Port_of_Mersin_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Mersin_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Mersin_Port_of_Salalah = 1256858.952\n",
       "\n",
       "_C26: ShipmentAmount_Port_of_Immingham_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Immingham_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Immingham_Port_of_Salalah = 1795512.788\n",
       "\n",
       "_C27: ShipmentAmount_Port_of_New_York_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_New_York_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_New_York_Port_of_Salalah = 4708260.278\n",
       "\n",
       "_C28: ShipmentAmount_Port_of_Los_Angeles_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Los_Angeles_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Los_Angeles_Port_of_Salalah = 3281771.629\n",
       "\n",
       "_C29: ShipmentAmount_Port_of_Saigon_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Saigon_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Saigon_Port_of_Salalah = 1077307.673\n",
       "\n",
       "VARIABLES\n",
       "ShipmentAmount_Penang_Port_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Penang_Port_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Penang_Port_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Algeciras_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Algeciras_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Algeciras_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Antwerp_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Antwerp_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Antwerp_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Bangkok_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Bangkok_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Bangkok_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Budapest_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Budapest_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Budapest_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Busan_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Busan_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Busan_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Gdansk_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Gdansk_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Gdansk_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Hamburg_Czeck_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Hamburg_Czeck_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Hamburg_Czeck_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Hong_Kong_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Hong_Kong_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Hong_Kong_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Immingham_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Immingham_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Immingham_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Los_Angeles_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Los_Angeles_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Los_Angeles_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Manzanillo_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Manzanillo_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Manzanillo_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Marseille_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Marseille_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Marseille_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Mersin_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Mersin_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Mersin_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Nagoya_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Nagoya_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Nagoya_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_New_York_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_New_York_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_New_York_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Novorossiysk_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Novorossiysk_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Novorossiysk_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Rotterdam_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Rotterdam_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Rotterdam_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Saigon_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Saigon_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Saigon_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Shanghai_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Shanghai_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Shanghai_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_St._Petersburg_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_St._Petersburg_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_St._Petersburg_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Vienna_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Vienna_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Vienna_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Vladivostok_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Vladivostok_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Vladivostok_Port_of_Salalah Continuous"
      ]
     },
     "execution_count": 21,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# Constraints\n",
    "for i in supply_points:\n",
    "    prob += sum(X[i][j] for j in demand_points) == glass_supply[i]\n",
    "prob"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 22,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Status: Optimal\n",
      "ShipmentAmount_Penang_Port_Port_of_Jebel_Ali = 1526185.9\n",
      "ShipmentAmount_Port_of_Algeciras_Port_of_Salalah = 1615961.5\n",
      "ShipmentAmount_Port_of_Antwerp_Port_of_Salalah = 3142147.4\n",
      "ShipmentAmount_Port_of_Bangkok_Port_of_Jebel_Ali = 1077307.7\n",
      "ShipmentAmount_Port_of_Budapest_Port_of_Salalah = 1346634.6\n",
      "ShipmentAmount_Port_of_Busan_Port_of_Jebel_Ali = 1975064.1\n",
      "ShipmentAmount_Port_of_Gdansk_Port_of_Gaza = 3052371.7\n",
      "ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Salalah = 3411474.3\n",
      "ShipmentAmount_Port_of_Hamburg_Czeck_Port_of_Gaza = 2513717.9\n",
      "ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Gaza = 9785544.7\n",
      "ShipmentAmount_Port_of_Hong_Kong_Port_of_Jebel_Ali = 3788532.0\n",
      "ShipmentAmount_Port_of_Immingham_Port_of_Salalah = 1795512.8\n",
      "ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Jebel_Ali = 1256859.0\n",
      "ShipmentAmount_Port_of_Los_Angeles_Port_of_Jebel_Ali = 3281771.6\n",
      "ShipmentAmount_Port_of_Manzanillo_Port_of_Gaza = 1975064.1\n",
      "ShipmentAmount_Port_of_Marseille_Port_of_Salalah = 4039903.8\n",
      "ShipmentAmount_Port_of_Mersin_Port_of_Salalah = 1256859.0\n",
      "ShipmentAmount_Port_of_Nagoya_Port_of_Jebel_Ali = 4039903.8\n",
      "ShipmentAmount_Port_of_New_York_Port_of_Gaza = 4708260.3\n",
      "ShipmentAmount_Port_of_Novorossiysk_Port_of_Salalah = 243131.07\n",
      "ShipmentAmount_Port_of_Rotterdam_Port_of_Gaza = 1469351.5\n",
      "ShipmentAmount_Port_of_Rotterdam_Port_of_Salalah = 236385.69\n",
      "ShipmentAmount_Port_of_Saigon_Port_of_Jebel_Ali = 1077307.7\n",
      "ShipmentAmount_Port_of_Shanghai_Port_of_Jebel_Ali = 8986398.3\n",
      "ShipmentAmount_Port_of_Shanghai_Port_of_Salalah = 7891422.9\n",
      "ShipmentAmount_Port_of_St._Petersburg_Port_of_Gaza = 245927.97\n",
      "ShipmentAmount_Port_of_Vienna_Port_of_Salalah = 897756.4\n",
      "ShipmentAmount_Port_of_Vladivostok_Port_of_Jebel_Ali = 498472.99\n",
      "Total kilogram_miles = 416487298416.32\n"
     ]
    }
   ],
   "source": [
    "prob.solve()\n",
    "\n",
    "print(\"Status:\", LpStatus[prob.status])\n",
    "\n",
    "for v in prob.variables():\n",
    "    if v.varValue > 0:\n",
    "        print(v.name, \"=\", v.varValue)\n",
    "\n",
    "print(\"Total kilogram_miles =\", value(prob.objective))\n"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.7.3"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
